﻿// ******************************************************************
// * Copyright(c)  Steven Lu
// * Description   : Schema_QC_SAMPLING_PARAMETERS
// * CreateDate    : 2012/5/7 19:48:01
// * Creater       : CodeSmith
// * LastChangeDate: 2012/5/7 19:48:01
// * LastChanger   : 2012/5/7 19:48:01
// * Version Info  : 1.0 For ESOL
// ******************************************************************

using System;
using System.Collections.Generic;
using System.Text;
using Suzsoft.Smart.EntityCore;

namespace ESOL.Common.Schema
{
    [Serializable]
    public partial class QcSamplingParametersTable : TableInfo
    {
        public const string C_TableName = "QC_SAMPLING_PARAMETERS";

        public const string C_ID = "ID";
        public const string C_NAME = "NAME";
        public const string C_RANGE_MIN_QTY = "RANGE_MIN_QTY";
        public const string C_RANGE_MAX_QTY = "RANGE_MAX_QTY";
        public const string C_CHECK_QTY = "CHECK_QTY";
        public const string C_NG_RATE = "NG_RATE";
        public const string C_STATUS = "STATUS";

        public QcSamplingParametersTable()
        {
            _tableName = "QC_SAMPLING_PARAMETERS";
        }

        protected static QcSamplingParametersTable _current;
        public static QcSamplingParametersTable Current
        {
            get
            {
                if (_current == null)
                {
                    Initial();
                }
                return _current;
            }
        }

        private static void Initial()
        {
            _current = new QcSamplingParametersTable();

            _current.Add(C_ID, new ColumnInfo(C_ID, "Id", true, typeof(string)));
            _current.Add(C_NAME, new ColumnInfo(C_NAME, "Name", false, typeof(string)));
            _current.Add(C_RANGE_MIN_QTY, new ColumnInfo(C_RANGE_MIN_QTY, "RangeMinQty", false, typeof(decimal)));
            _current.Add(C_RANGE_MAX_QTY, new ColumnInfo(C_RANGE_MAX_QTY, "RangeMaxQty", false, typeof(decimal)));
            _current.Add(C_CHECK_QTY, new ColumnInfo(C_CHECK_QTY, "CheckQty", false, typeof(decimal)));
            _current.Add(C_NG_RATE, new ColumnInfo(C_NG_RATE, "NgRate", false, typeof(decimal)));
            _current.Add(C_STATUS, new ColumnInfo(C_STATUS, "Status", false, typeof(string)));

        }

        public ColumnInfo ID
        {
            get { return this[C_ID]; }
        }

        public ColumnInfo NAME
        {
            get { return this[C_NAME]; }
        }

        public ColumnInfo RANGE_MIN_QTY
        {
            get { return this[C_RANGE_MIN_QTY]; }
        }

        public ColumnInfo RANGE_MAX_QTY
        {
            get { return this[C_RANGE_MAX_QTY]; }
        }

        public ColumnInfo CHECK_QTY
        {
            get { return this[C_CHECK_QTY]; }
        }

        public ColumnInfo NG_RATE
        {
            get { return this[C_NG_RATE]; }
        }

        public ColumnInfo STATUS
        {
            get { return this[C_STATUS]; }
        }



    }
}

